/*
 * @Author: 卡卡 1071780426@qq.com
 * @Date: 2022-12-02 16:01:24
 * @LastEditors: 陈妮娜 969682281@qq.com
 * @LastEditTime: 2024-04-01 14:14:20
 * @FilePath: \mould\src\views\pages\Supervision\regexDetail.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export default {
    formData: {
        fId: "", //传fid表示修改 不传表示新增
        userId: "", //当前登录人id
        userName: "", //当前登录人姓名
        fSamplereportid: "", //试验名称*
        fSamplereportname: "", //试验名称id*
        fCompletiondates: "", //预计完成日期*
        fTestperson: "", //试验人
        fTestpersonid: "", //试验人id
        fTestnote: "", //备注
        fSampleassignnostr: "", //样品编号
        fSamplereportnostr: "", //报告编号
    },
    // 见证取样--列表
    table_config: {
        // 列表配置项
        imgKeyWord: "url",
        fileKeyWord: "url",
        fileName: "fFileName",
        dialogHeight: '',
        thead: [
            {
                label: "项目简称",
                prop: "fProjectname",
                minWidth: "120px",
                align: "left",
            },
            {
                label: "标段",
                prop: "fCompanyname",
                minWidth: "65px",
                align: "left",
            },
            {
                label: "检测类型",
                prop: "fChecktype",
                minWidth: "70px",
                align: "center",
            },
            {
                label: "取样编号",
                prop: "fSamplenostr",
                minWidth: "160px",
                align: "left",
            },
            {
                label: "样品编号",
                prop: "fSampleassignnostr",
                minWidth: "170px",
                align: "left",
                Jump: true,
            },
            {
                label: "样品名称",
                prop: "fSamplename",
                minWidth: "90px",
                align: "left",
            },

            {
                label: "样品描述",
                prop: "fSamplemessage",
                minWidth: "160px",
                align: "left",
            },
            {
                label: "工程部位/用途",
                prop: "fProjectlocation",
                minWidth: "160px",
                align: "left",
            },
            {
                label: "取样日期",
                prop: "fSampledates",
                minWidth: "100px",
                align: "center",
            },
            {
                label: "取样人",
                prop: "fSampleperson",
                minWidth: "60px",
                align: "center",
            },
            {
                label: "收样日期",
                prop: "fCollectiondates",
                minWidth: "100px",
                align: "center",
            },
            {
                label: "收样人",
                prop: "fTestperson",
                minWidth: "60px",
                align: "center",
            },
            {
                label: "见证人",
                prop: "fWitnessperson",
                minWidth: "60px",
                align: "center",
            },

        ],
        isCheckBox: false,
        isIndex: true,
        isOperation: true,
        // 表格操作列
        operation: {
            label: '样品状态',
            width: '80',
            detail: true,
            prop: true,
            cols: [],

        },
    },

    // 详情
    formObj: [{
        input: true, //是input
        label: "试验名称", //字段
        prop: "fSamplereportname", //字段名
        width: 24, //参考el-col
        disabled: true, //是否禁用
    },
    {
        input: true, //是input
        label: "试验人", //字段
        prop: "fTestperson", //字段名
        width: 12, //参考el-col
        disabled: true, //是否禁用
    },
    {
        input: true, //是input
        label: "预计完成日期", //字段
        prop: "fCompletiondates", //字段名
        width: 12, //参考el-col
        disabled: true, //是否禁用
    },

    {
        textarea: true, //是input
        label: "备注", //字段
        prop: "fTestnote", //字段名
        width: 24, //参考el-col
        disabled: true, //是否禁用
    }
    ],
    formObjText: [
        {
            selects: true, //是input
            label: "试验名称", //字段
            prop: "fSamplereportname", //字段名
            width: 24, //参考el-col
            disabled: false, //是否禁用
            options: [],
            rules: [{
                required: true,
                message: '样品种类不能为空'
            }] //验证
        },
        {
            inputBtn: true, //是input
            inputButton: true,
            label: "试验人", //字段
            prop: "fTestperson", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '请填写试验人'
            }] //验证
        },
        {
            datePicker: true, //日期
            // dateTime: true, //带时分秒
            label: "预计完成日期", //字段
            prop: "fCompletiondates", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '请选择预计完成日期'
            }] //验证
        },
        {
            textarea: true, //是input
            label: "备注", //字段
            prop: "fTestnote", //字段名
            width: 24, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: false,
                message: '备注不能为空'
            }] //验证
        },

    ],

    btnObj: [{
        fEncode: "yj_edit",
        fFullname: "编辑",
        fOrder: 3
    },
    {
        fEncode: "yj_export",
        fFullname: "导出",
        fOrder: 5
    },
    ]


}